<script type="text/javascript">
$(document).ready(function() {
    $("#[php_property:id]").uploadify({
        'uploader'       : '<?php echo config::$baseUrl;?>/api/uploadify/uploadify.swf',
        'script'         : '[php:save_file.php]?[php_property:data]',
        'cancelImg'      : '<?php echo config::$baseUrl;?>/api/uploadify/cancel.png',
        'buttonText'  : '[php_property:button_text]',
        'fileExt'     : '[php_property:file_extension]',
        'fileDesc'     : '[php_property:file_extension_description]',
        'folder'         : 'uploads',
        'queueID'        : 'fileQueue',
        'auto'           : true,
        'multi'          : [php_property:multi_upload],
        'fileDataName' : '[php_property:file_field]',
        //'displayData'     : 'speed', 
        'onAllComplete' : function(event,data) {
            
            //alert(data.filesUploaded + ' files uploaded successfully!');

            // Weiterleitung
            redirect = "[php_property:redirect]";
            if (redirect!="") {
                window.location = '<?php echo config::$baseUrl;?>'+redirect;
            }
        },
      'onError'     : function (event,ID,fileObj,errorObj) {
      alert(errorObj.type + ' Error: ' + errorObj.info);
    }
      
    });
});
</script>
